package com.mk.wardsystemserver.mapper;

import com.mk.wardsystemserver.pojo.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2022-02-24
 */
public interface DepartmentMapper extends BaseMapper<Department> {
    /**
     * 获取所有部门
     * @return
     */
    List<Department> getAllDepartments(Integer parentId);

    /**
     *添加部门
     * @param depart
     */
    void addDepart(Department depart);

    /**
     * 删除部门
     * @param depart
     */
    void deleteDepart(Department depart);
}
